import User from "../../User";

const { ccclass, property } = cc._decorator;

@ccclass
export default class RoomView extends cc.Component {



    @property(cc.Sprite)
    colorSprite: cc.Sprite = null;

    start() {
        let data: any = User.tempData
        if (data) {
            // let text:cc.Texture2D = this.colorSprite.spriteFrame.getTexture();
            // this.colorSprite.node.scaleY = -1;
            // text['setWrapMode'](cc.Texture2D.WrapMode.REPEAT,cc.Texture2D.WrapMode.REPEAT)
            // text.initWithData(data, text.getPixelFormat(), 512, 512)
        }
    }


    onButtonBack() {
        this.node.destroy();
    }

    // update (dt) {}
}
